/**
 * 
 */
package neptune.web.client.services.user;

import neptune.web.client.model.SerializableUser;
import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * @author Roberto Bifulco [info@robertobifulco.it, robertobifulco.it]
 * 
 */
public interface UserServiceAsync {

	public void addUser(SerializableUser user, AsyncCallback<Boolean> callback);

	public void removeUser(String username, AsyncCallback<Boolean> callback);

	public void getUsers(int begin, int end, int sortId,
			boolean ascending, AsyncCallback<SerializableUser[]> callback);

	public void getUser(String username, AsyncCallback<SerializableUser> callback);

	public void updateUser(SerializableUser user, AsyncCallback<Boolean> callback);
}
